#ifndef __Controller_H__ 
#define __Controller_H__ 

#include "cocos2d.h" 
#include "ControllerListener.h"
USING_NS_CC; 

enum EightDirection{
	UP = 0,
	UP_RIGHT = 45,
	RIGHT = 90,
	DOWN_RIGHT = 135,
	DOWN = 180,
	DOWN_LEFT = 225,
	LEFT = 270,
	UP_LEFT = 315,
};

class Controller : public Node{ 
public:
	void setControllerListener(ControllerListener* controllerListener);
	virtual void stop();
protected:
	ControllerListener* m_controllerListener;
}; 


#endif // __Controller_H__ 
